package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.LoanOverflow;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.repository.query.Param;

/**
 * 溢出金额Service接口
 *
 * @author african-loan
 * @date 2021-10-28
 */
public interface ILoanOverflowService extends IService<LoanOverflow>{
    /**
     * 查询溢出金额
     *
     * @param id 溢出金额ID
     * @return 溢出金额
     */
    public LoanOverflow selectLoanOverflowById(Long id);

    /**
     * 查询溢出金额列表
     *
     * @param loanOverflow 溢出金额
     * @return 溢出金额集合
     */
    public List<LoanOverflow> selectLoanOverflowList(LoanOverflow loanOverflow);

    public List<LoanOverflow> getList(LoanOverflow loanOverflow);

    /**
     * 新增溢出金额
     *
     * @param loanOverflow 溢出金额
     * @return 结果
     */
    public int insertLoanOverflow(LoanOverflow loanOverflow);

    /**
     * 修改溢出金额
     *
     * @param loanOverflow 溢出金额
     * @return 结果
     */
    public int updateLoanOverflow(LoanOverflow loanOverflow);

    /**
     * 批量删除溢出金额
     *
     * @param ids 需要删除的溢出金额ID
     * @return 结果
     */
    public int deleteLoanOverflowByIds(Long[] ids);

    /**
     * 删除溢出金额信息
     *
     * @param id 溢出金额ID
     * @return 结果
     */
    public int deleteLoanOverflowById(Long id);

    LoanOverflow selectOneByHas(String custNo,String paymentReference);
}
